package cate.game.role.bag.heropart.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBBag;
import cate.game.role.Role;
import cate.game.role.bag.heropart.HeroPartBag;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "碎片 初始化数据 の 返回")
public class HeroPartInitResp implements MsgOutput {

    @NoteField(value = "主角 [ 碎片 ] 背包数据")
    public HeroPartBag data;

    public HeroPartInitResp(){}

    public HeroPartInitResp(Role role) {
        this.data = role.getBag().heroPart;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.HERO_PART_INIT_RESP;
    }
}
